
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTimer>
#include <QWidget>

QT_BEGIN_NAMESPACE

QT_END_NAMESPACE

class QListWidgetItem;
namespace Ui
{
    class MainWindow;
}
class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void reload_vcpkg_list();
    void reload_vcpkg_search(const QString &text = "");

private slots:
    void on_action_vcpkg_triggered();
    void on_action_cmake_triggered();
    void on_vcpkg_list_widget_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
    void on_vcpkg_list_reload_btn_clicked();

    void on_vcpkg_search_textChanged(const QString &arg1);
    void on_vcpkg_search_edit_textChanged(const QString &arg1);

    void on_vcpkg_search_tablewidget_customContextMenuRequested(const QPoint &pos);

private:
    Ui::MainWindow *ui;

    QTimer vcpkg_search_timer;
};

#endif // MAINWINDOW_H

